package com.lst.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.lst.dao.CompanionMapper;
import com.lst.model.Companion;
import com.lst.service.CompanionService;


/**
 * @ClassName: CompanionServiceImpl
 * @Description: 结伴活动添加实现类层
 * 
 */
@Service("CompanionService")
public class CompanionServiceImpl implements CompanionService {
	
	@Autowired
	private CompanionMapper dao;

	@Override
	public int insert(Companion record) {
		
		return dao.insert(record);
	}

	@Override
	public Companion selectByPrimaryKey(Integer id) {
	
		return dao.selectByPrimaryKey(id);
	}

	@Override
	public int updateCompanion(Companion record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<Companion> queryByList(Map<String, Object> map, PageBounds pageBounds) {

		return dao.queryByList(map, pageBounds);
	}

	@Override
	public int updateByPrimaryKey2(Integer id) {
		
		return dao.updateByPrimaryKey2(id);
	}

	@Override
	public int countByKey(Integer id) {
		
		return dao.countByKey(id);
	}

	@Override
	public Companion selectByPrimaryKey2(Integer id) {
		
		return dao.selectByPrimaryKey2(id);
	}

	

	

}
